15. Assessing and Building Intuition Quiz
Using the functions you learned so far, explore
census_income_data.csv
in the Jupyter notebook below to answer quiz questions below the notebook about these characteristics of the dataset:
- number of rows
- number of columns
- data types of several columns
- columns with missing values
- number of unique values of education
- mean age
- 75th percentile of hours-per-week
This data was originally taken from here .
Workspace
This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.
Workspace Information:
- Default file path:
- Workspace type: jupyter
- Opened files (when workspace is loaded): n/a
QUESTION:
How many rows are in this dataset?
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
QUESTION:
How many columns are in this dataset?
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
QUIZ QUESTION: :
For each column in the dataset below, click and drag the correct datatype for that column down into the matching position.
ANSWER CHOICES:
Column |
Datatype |
---|---|
class |
|
string |
|
function |
|
string |
|
boolean |
|
string |
|
int |
|
int |
|
string |
|
float |
SOLUTION:
Column |
Datatype |
---|---|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
string |
|
int |
|
int |
|
int |
|
int |
|
string |
|
string |
|
string |
|
string |
SOLUTION:
- workclass
- occupation
- native-country
QUESTION:
How many unique values of education are?
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
QUESTION:
What is the mean age rounded to the nearest integer?
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
QUESTION:
What is the 75th percentile of hours-per-week in this dataset?
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer